<form
  nz-form
  [formGroup]="validateForm"
  (ngSubmit)="onSubmit()"
  nzLayout="inline"
>
  <nz-form-item>
    <nz-form-control nzErrorTip="Please input your username!">
      <nz-input-group nzPrefixIcon="user">
        <input nz-input formControlName="username" placeholder="Username" />
      </nz-input-group>
    </nz-form-control>
  </nz-form-item>
  <nz-form-item>
    <nz-form-control nzErrorTip="Please input your Password!">
      <nz-input-group nzPrefixIcon="lock">
        <input
          nz-input
          formControlName="password"
          type="password"
          placeholder="password"
        />
      </nz-input-group>
    </nz-form-control>
  </nz-form-item>
  <nz-form-item>
    <nz-form-control>
      <button nz-button nzType="primary" [disabled]="validateForm.invalid">
        Log in
      </button>
    </nz-form-control>
  </nz-form-item>
</form>
